package com.example.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (SysMenu)实体类
 *
 * @author makejava
 * @since 2021-09-17 19:54:36
 */
public class SysMenu implements Serializable {
	private static final long serialVersionUID = -42939320618503322L;
	/**
	 * 主键
	 */
	private Long id;
	/**
	 * 菜单名称
	 */
	private String name;
	/**
	 * 程序路径
	 */
	private String appurl;
	/**
	 * 图片路径
	 */
	private String imgurl;
	/**
	 * 排序码
	 */
	private Integer sortcode;
	/**
	 * 上级菜单Id
	 */
	private Long parentid;
	/**
	 * 菜单类型
	 */
	private String menutype;
	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createdate;
	/**
	 * 修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date modifydate;

	private String status;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAppurl() {
		return appurl;
	}

	public void setAppurl(String appurl) {
		this.appurl = appurl;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public Integer getSortcode() {
		return sortcode;
	}

	public void setSortcode(Integer sortcode) {
		this.sortcode = sortcode;
	}

	public Long getParentid() {
		return parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	public String getMenutype() {
		return menutype;
	}

	public void setMenutype(String menutype) {
		this.menutype = menutype;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Date getModifydate() {
		return modifydate;
	}

	public void setModifydate(Date modifydate) {
		this.modifydate = modifydate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "SysMenu{" +
				"id=" + id +
				", name='" + name + '\'' +
				", appurl='" + appurl + '\'' +
				", imgurl='" + imgurl + '\'' +
				", sortcode=" + sortcode +
				", parentid=" + parentid +
				", menutype='" + menutype + '\'' +
				", createdate=" + createdate +
				", modifydate=" + modifydate +
				", status='" + status + '\'' +
				'}';
	}
}